/*
* 命名空间: LogicModel.DataModel
*
* 功 能： SysOperationLog实体类
*
* 类 名： SysOperationLogEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/02/26 17:33:03 罗维     创建
*
* Copyright (c) 2016 Lir Corporation. All rights reserved.
*/

namespace LogicModel.DataModel
{
    using System;
    using ToolsModel;

    /// <summary>
    /// 系统操作记录表
    /// </summary>
    [Serializable]
    [TableInfo(TableName = "SysOperationLog")]
    public class SysOperationLogEntity
    {

        /// <summary>
        /// 唯一标识符
        /// </summary>
        [FieldInfo(ByteLength = 32, DataLength = 32, DecimalDigits = 0, ColumnName = "gCode", Required = false, DefaultValue = "")]
        public String Code
        {
            get; set;
        }

        /// <summary>
        /// 功能类型
        /// </summary>
        [FieldInfo(ByteLength = 4, DataLength = 10, DecimalDigits = 0, ColumnName = "iFunType", Required = false, DefaultValue = "")]
        public Int32? FunType
        {
            get; set;
        }

        /// <summary>
        /// 操作类型：0增加  1编辑 3删除。
        /// </summary>
        [FieldInfo(ByteLength = 4, DataLength = 10, DecimalDigits = 0, ColumnName = "iOptType", Required = false, DefaultValue = "")]
        public Int32? OptType
        {
            get; set;
        }

        /// <summary>
        /// 操作人账号
        /// </summary>
        [FieldInfo(ByteLength = 100, DataLength = 50, DecimalDigits = 0, ColumnName = "sUser", Required = false, DefaultValue = "")]
        public String User
        {
            get; set;
        }

        /// <summary>
        /// 操作IP
        /// </summary>
        [FieldInfo(ByteLength = 100, DataLength = 50, DecimalDigits = 0, ColumnName = "sIP", Required = false, DefaultValue = "")]
        public String IP
        {
            get; set;
        }

        /// <summary>
        /// 操作详情
        /// </summary>
        [FieldInfo(ByteLength = 400, DataLength = 200, DecimalDigits = 0, ColumnName = "sDetail", Required = false, DefaultValue = "")]
        public String Detail
        {
            get; set;
        }

        /// <summary>
        /// 操作时间
        /// </summary>
        [FieldInfo(ByteLength = 8, DataLength = 23, DecimalDigits = 3, ColumnName = "dCreateTime", Required = false, DefaultValue = "")]
        public DateTime? CreateTime
        {
            get; set;
        }
    }
}
